home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / What's New? / Development Kits / Mac OS / Installer SDK 1.2.4 / Installer 4.0.8 / Installer 4.0.8 Examples / Custom UI Example / Makefile < prev   
Encoding:
Makefile  |  2000-10-04  |  1.5 KB  |  33 lines  |  [TEXT/MPS ]

  1. # To build this example, choose the "Build…" menu item from within
  2. # the "Build" menu in MPW. When asked for Program Name, type in the 
  3. # script name, in this case "customUI" ( without double quotes ) 
  4. # and press the Enter key. Be sure that the Current Working Directory
  5. # for MPW is set to the directory containing this example.
  6.  
  7. # To build the Debugger version of this example, choose the "Build…" 
  8. # menu item from within the "Build" menu in MPW. When asked for Program 
  9. # Name, type in the script name, in this case "customUI.debug" ( without 
  10. # double quotes ) and press the Enter key. Be sure that the Current 
  11. # Working Directory for MPW is set to the directory containing this example.
  12.  
  13. scriptName                = customUI
  14. debugScriptName            = "{scriptName}.debug"
  15.  
  16. ScriptCheckDir            = ::::Upgrader 1.2.1 & Engines:Installer Engine 4.5.1:Tools:Released:ScriptCheck 4.2b6:
  17. InstallerRIncDir        = :::DeveloperInterfaces:RIncludes:
  18. InstallerDebuggerDir    = :::Installer Debugger 4.0.8:
  19.  
  20. # build the debug version of the installer script
  21. "{debugScriptName}" ƒ "{scriptName}"
  22.     Duplicate -y "{scriptName}" "{scriptName} w/ Debugger"
  23.     DeRez "{InstallerDebuggerDir}Installer Debugger.rsrc" | Rez -m -append -o "{scriptName} w/ Debugger"
  24.  
  25. # build the regular version of the installer script
  26. "{scriptName}" ƒ "{scriptName}.r"
  27.     set theTime    "'`date -d -s` 12:00:00 PM'"
  28.     Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
  29.     SetFile -a b -d {theTime} "{scriptName}"
  30.     "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
  31.     SetFile -m {theTime} "{scriptName}"
  32.  
  33.